/*
 * Tree.h
 *
 *  Created on: 2011-12-7
 *      Author: tracl01
 */
#define MAX_TREE_SIZE	100
#ifndef TREE_H_
#define TREE_H_


#endif /* TREE_H_ */

typedef struct CTNode{
	int 	child;
	struct CTNode *next;
}CTNode,*ChildPtr;

typedef struct {
	int		data;
	ChildPtr	firstchild;
}CTBox;
typedef struct{
	CTBox	nodes[MAX_TREE_SIZE];
	int		n,r;		//结点数和根的位置
}CTree;

typedef struct CSNode {
	int 	data;
	struct	CSNode *firstchild,*nextchild;
}CSNode, *CSTree;
